<% if activities.size > 0 %>
	<% if defined? caption and caption %>
		<p><b><%= caption %></b></p>
	<% end %>
	<table class="basic-table fluid gray-line" style="margin-bottom: 30px">
		<thead>
			<tr>
				<th class="header-left top-left-rounded-8" style="width: 50px"><%= t :label, :scope => [:activity, :state] %></th>
				<th class="left"><%= t :label, :scope => [:activity, :title] %></th>
				<th><%= t :milestone, :count => 1 %></th>
				<% if defined? show_responsible and show_responsible %>
					<th><%= t :label, :scope => [:activity, :responsible] %></th>
				<% end %>
				<th class="top-right-rounded-8" style="width: 150px" class="header-right"><%= t :label, :scope => [:activity, :age] %></th>
			</tr>
		</thead>
		<tbody>
		<% for activity in activities %>
			<tr class="<%= cycle("even", "odd") %>">
				<td><%= status_for activity %></td>
				<td class="left <%= "strike" if activity.completed_at %>"><%= link_to activity.title, project_activity_path(@project, activity) %></td>
				<% if defined? show_milestone and show_milestone %>
					<td><%= link_to activity.milestone.title, project_milestone_path(@project, activity.milestone) unless activity.milestone.nil? %></td>
				<% end %>
				<% if defined? show_responsible and show_responsible %>
					<td><%= link_to activity.responsible, activity.responsible unless activity.responsible.nil? %></td>
				<% end %>
				<td><%= time_ago_in_words activity.created_at %></td>
			</tr>
		<% end %>
		</tbody>
	</table>
<% end %>